package wangm.repository;

import wangm.JunitTest;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * describe
 *
 * @author zk
 * @date 2018-02-24 8:49
 */
public class PaperTopicRepositoryTest extends JunitTest{

    @Autowired
    private ExaminationPaperTopicRepository paperTopicRepository;

    @Autowired
    private ExaminationTopicOptionRepository topicOptionRepository;

    @Test
    public void getTopicListByPidTest(){
        List result =  paperTopicRepository.getTopicListByPid("001");
        System.out.println(result.size());
    }

    @Test
    public void getOptionListByTidTest(){
        List result = topicOptionRepository.getOptionListByTid("010");
        System.out.println(result.size());
    }
}
